package fsaf;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;

public class Zhuanfmsa {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		File fr=new File("E:\\workspace\\kwXA\\src\\com\\kw\\struts\\action\\XinduanAction.java");
		InputStreamReader isr=new InputStreamReader(new FileInputStream(fr),"UTF-8");
        BufferedReader br=new BufferedReader(isr);
        FileWriter fw=new FileWriter("E:\\workspace\\kwXA\\src\\com\\kw\\struts\\action\\XinduanActionaa.java");
        String s=null;
        while((s=br.readLine())!=null){
        	System.out.println(s);
        	s=new String(s.getBytes("UTF-8"),"UTF-8");
        	fw.write(s.toCharArray());
        	
        }
        fw.flush();
        fw.close();
        br.close();
   
	}

}
